home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-05-21 | 550 b | 29 lines | [TEXT/ttxt] |
- --<<<
- -- Class MenuToggle
- in module Autofinder
-
- if NOT (isdefined Switch) do filein theScriptDir name:"switch.sx"
-
- class MenuToggle (TwoDShape, Switch)
- instance variables
- name
- end
-
- method init self {class MenuToggle} #rest args #key x: y: \
- toggledOffBitmap: \
- toggledOnBitmap: \
- name: ->
- (
- apply nextMethod self args
-
- self.name := name
- self.toggledOnBitmap := toggledOnBitmap
- self.toggledOffBitmap := toggledOffBitmap
- self.x := x
- self.y := y
- -- self.activateAction := (adata pb toggledOn -> print pb.name)
- )
-
-
- "Compiled Menutogl.sx"
- -->>>